package com.youxin.busfoundation.common;


import redis.clients.jedis.JedisCluster;

/**
 * 保存数据到Redis
 * @author yingde.cao
 *
 */
public class RedisStorage {
	/**
	 * 保存监控异常主机ip到redis中
	 * @param redis redis接口
	 * @param ip ip地址
	 */
	public static void saveNginxAlarmHost(JedisCluster redis,String ip)
	{
		String key=RedisKeyGenerator.nginxAlarmHostKey(ip);
		redis.setex(key, GlobalConfig.NGINX_ALARM_SECONDS, "1");
	}
}
